Skip to content

fix(web): remove v prefix from version in page title#744

Open
sujalgoel wants to merge 3 commits intonodejs:mainfrom
sujalgoel:fix/version-header-v-prefix
Open

fix(web): remove v prefix from version in page title#744
sujalgoel wants to merge 3 commits intonodejs:mainfrom
sujalgoel:fix/version-header-v-prefix

Conversation

@sujalgoel
Copy link
Copy Markdown
Contributor

The page title currently renders as "Node.js v25.4.0 Documentation". The Node.js documentation style guide specifies that version references should not include the v prefix.

Removes the v from the template string in processJSXEntries so the title renders as "Node.js 25.4.0 Documentation".

Fixes #722

@sujalgoel sujalgoel requested a review from a team as a code owner April 2, 2026 14:36
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api-docs-tooling Ready Ready Preview Apr 3, 2026 11:15am

Request Review

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.17%. Comparing base (63c24b9) to head (f27f242).

Files with missing lines Patch % Lines
src/generators/web/utils/processing.mjs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #744      +/-   ##
==========================================
- Coverage   77.17%   77.17%   -0.01%     
==========================================
  Files         153      153              
  Lines       13771    13782      +11     
  Branches     1114     1115       +1     
==========================================
+ Hits        10628    10636       +8     
- Misses       3139     3142       +3     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MikeMcC399
Copy link
Copy Markdown

It would be nice to see this fixed! I didn't attempt to submit any PR myself for this issue because I assumed that the new website format (see nodejs/node#52343) would be promoted to production much sooner.

MikeMcC399

This comment was marked as resolved.

Aligns with the Node.js documentation style guide which specifies
version references should not include the v prefix.

Closes nodejs#722
Moves the title suffix string into defaultConfiguration as a
template ("Node.js {version} Documentation") and uses populate()
to resolve it at runtime, consistent with how other config
strings are handled.

Fixes nodejs#722
MikeMcC399

This comment was marked as outdated.

@sujalgoel
Copy link
Copy Markdown
Contributor Author

Thanks for the context. The fix still makes sense regardless of the UI format since it removes the hardcoded v prefix and moves the title string into defaultConfiguration where it can be overridden per project. Happy to defer to the maintainers on whether to merge.

@avivkeller
Copy link
Copy Markdown
Member

Yes, this should be merged (after our 48hr review time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API docs version header uses v version prefix

5 participants